<extend name="./public/operateMain.html" />
<block name="editArea">
<div class="panel panel-primary">
	<div class="panel-heading">
		<span class="glyphicon glyphicon-th-list">&nbsp;</span>
		<b>跟单信息</b>
		<a href="{:U('Main/main')}">
			<span class="glyphicon glyphicon-remove"
				style="float: right; color: white"></span>
		</a>
		<form id="pagerForm" action="__URL__/index" method="post">
			<div class="input-group">
				<input type="text" class="form-control" name="keys"
					placeholder="关键字" />
				<div class="input-group-btn">
					<button type="submit" class="btn btn-default" style="height: 34px">
						<span class="glyphicon glyphicon-search"></span>
					</button>
					<button type="reset" class="btn btn-default" style="height: 34px">
						<b>清空查询</b>
					</button>
					<a href="__URL__/add" class="btn btn-default">
						<b>新增</b>
					</a>
					<a href="#dctsk" class="btn  btn-default" data-toggle="modal">
						<b>导出</b>
					</a>
				</div>
			</div>
		</form>
	</div>
	<div class="editheight">
		<table class="table table-bordered table-hover">
			<tr>
				<th data-order-direction='desc' data-order-field='id'>ID</th>
				<th>详情</th>
				<th>客户名称</th>
				<th data-order-direction='desc' data-order-field='type'>跟单方式</th>
				<th data-order-direction='desc' data-order-field='fenlei'>进展阶段</th>
				<th data-order-direction='desc' data-order-field='xcrq'>下次联系</th>
				<th>跟单人</th>
				<th data-order-direction='desc' data-order-field='addtime'>跟单时间</th>
				<th data-order-direction='desc' data-order-field='updatetime'>更新时间</th>
				<th>编辑</th>
			</tr>
			<volist id="v" name="list">
			<tr>
				<td>{$v.id}</td>
				<td>{$v.value|msubstr=###,0,20}</td>
				<td>{$v.jcname|msubstr=###,0,20}</td>
				<td>{$v.type}</td>
				<td>{$v.fenlei}</td>
				<td>{$v.xcrq|substr=###,0,10}</td>
				<td>{$v.uname|msubstr=###,0,20}</td>
				<td>{$v.addtime|substr=###,0,10}</td>
				<td>{$v.updatetime|substr=###,0,10}</td>
				<td>
					<a href="__URL__/edit/id/{$v['id']}" class="green">编辑</a>
					<a href="__URL__/del/id/{$v.id}" onclick="return confirm('确定删除吗？')"
						class="green" >删除</a>
				</td>
			</tr>
			</volist>
		</table>
	</div>
</div>
<div class="text-center">{$page}</div>
<div id="dctsk" class="modal">
	<div class="modal-dialog" style="width: 350px">
		<div class="modal-content">
			<div class="modal-header">
				<button class="close" data-dismiss="modal">&times;</button>
				<h3 class="modal-title">
					<span class="	glyphicon glyphicon-download-alt"></span>
					确定导出
				</h3>
			</div>
			<div class="modal-body">你确定要导出吗？</div>
			<div class="modal-footer">
				<a href="__URL__/outxls" class="dctsk btn btn-primary">确定</a>
				<button class="btn btn-default" data-dismiss="modal">取消</button>
			</div>
		</div>
	</div>
</div>
</block>